bitkeeper revision 1.1159.187.49 (41aede81IBQOThmH0W0AYSHb2Gt7sA)
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Thu, 2 Dec 2004 09:21:05 +0000 (09:21 +0000)
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Thu, 2 Dec 2004 09:21:05 +0000 (09:21 +0000)
Split out install targets in root Makefile.

Makefile

index 83a844202eb4ffa3ce0d175f49527bc71c87dd89..13f5c5cb9768419162c57455e5d260a866fc2764 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,29 +19,38 @@ export INSTALL_DIR
 include buildconfigs/Rules.mk
 
 .PHONY:        all dist install xen tools kernels docs world clean mkpatches mrproper
-.PHONY:        kbuild kdelete kclean
+.PHONY:        kbuild kdelete kclean install_tools install_xen install_docs
+.PHONY: install_kernel
 
 all: dist
 
-# build and install everything into local dist directory
-dist: xen tools kernels docs
-       install -m0644 ./COPYING $(DIST_DIR)
-       install -m0644 ./README $(DIST_DIR)
-       install -m0755 ./install.sh $(DIST_DIR)
-       mkdir -p $(DIST_DIR)/check
-       install -m0755 tools/check/chk tools/check/check_* $(DIST_DIR)/check
-
 # install everything into the standard system directories
 # NB: install explicitly does not check that everything is up to date!
-install: 
+install: install_tools install_xen install_kernels install_docs
+
+install_xen:
        $(MAKE) -C xen install
+
+install_tools:
        $(MAKE) -C tools install
+
+install_kernels:
        $(shell cp -a $(INSTALL_DIR)/boot/* /boot/)
        $(shell cp -a $(INSTALL_DIR)/lib/modules/* /lib/modules/)
-       sh ./docs/check_pkgs && $(MAKE) -C docs install || true
        $(shell cp -dR $(INSTALL_DIR)/boot/*$(LINUX_VER)* $(prefix)/boot/)
        $(shell cp -dR $(INSTALL_DIR)/lib/modules/* $(prefix)/lib/modules/)
 
+install_docs:
+       sh ./docs/check_pkgs && $(MAKE) -C docs install || true
+
+# build and install everything into local dist directory
+dist: xen tools kernels docs
+       install -m0644 ./COPYING $(DIST_DIR)
+       install -m0644 ./README $(DIST_DIR)
+       install -m0755 ./install.sh $(DIST_DIR)
+       mkdir -p $(DIST_DIR)/check
+       install -m0755 tools/check/chk tools/check/check_* $(DIST_DIR)/check
+
 xen:
        $(MAKE) prefix=$(INSTALL_DIR) dist=yes -C xen install